/*
 * TestGrid.java
 *
 * Created on October 4, 2004, 2:14 PM
 */
package edu.temple.GUS.MMA.Functions;

import java.util.Hashtable;
import edu.temple.GUS.MMA.DataTypes.*;
import edu.temple.GUS.MMA.Functions.*;
import edu.temple.GUS.MMA.Functions.ZonalAdd;
import edu.temple.GUS.MMA.io.*;
import edu.temple.GUS.MMA.Neighborhoods.*;
import edu.temple.GUS.MMA.Neighborhoods.TLag;
import edu.temple.GUS.MMA.Neighborhoods.XYTLag;
import edu.temple.GUS.MMA.Neighborhoods.XYZLag;
import edu.temple.GUS.MMA.Neighborhoods.XYZTLag;
import edu.temple.GUS.MMA.Neighborhoods.XYZTLagList;

/**
 *
 * @author  rkhanna
 */
public class ZonalTest_1 {
    
    /** Creates a new instance of TestGrid */
    public ZonalTest_1() {}
    
    public static void main(String[] args)
    {
     execute();
    }
    
    
    public static void execute()
    {
    try
     {   

     MMATimeSeries tsobj = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input1\\", "timeseries.hdr");
     MMATimeSeries tsobj1 = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input2\\", "timeseries.hdr");
     ZonalAdd zonalobj = new ZonalAdd();    
     Hashtable ht = zonalobj.execute(tsobj, tsobj1);     
     
     
     
/*          Enumeration e = ht.keys();
            while (e.hasMoreElements())
            {
                Float ff = (Float)e.nextElement();                
                float outputkey = ff.floatValue();
                float outputvalue = ((Float)ht.get(ff)).floatValue();               
                System.out.println(outputkey + ":::" + outputvalue);
            }  
*/
            
            
         
     /*
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpVarianceZ addobj = new LocalRollUpVarianceZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\VarianceZ\\");                      
     */
         
     /*
     MMATimeCube hcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpVarianceXY addobj = new LocalRollUpVarianceXY();    
     MMATimeSeries resultobj = addobj.execute(hcobj);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\VarianceXY\\");                      
     */
     
     /*    
     MMATimeCube hcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpVarianceT addobj = new LocalRollUpVarianceT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\VarianceT\\timecube\\");                      
     */
         
     /*
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpRangeZT addobj = new LocalRollUpRangeZT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\RangeZT\\");                           
     */
         
     /*
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpRangeZ addobj = new LocalRollUpRangeZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\RangeZ\\");                      
     */
         
     /*    
     MMATimeCube hcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpRangeXY addobj = new LocalRollUpRangeXY();    
     MMATimeSeries resultobj = addobj.execute(hcobj);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\RangeXY\\");                      
     */
     
     /*
     MMATimeCube hcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpRangeT addobj = new LocalRollUpRangeT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\RangeT\\timecube\\");                      
     */
     
     /*
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpRangeT addobj = new LocalRollUpRangeT();    
     MMASpaceCube resultobj = addobj.execute(hcobj);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\RangeT\\hypercube\\");          
    */
         
     /*    
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMultiplyZT addobj = new LocalRollUpMultiplyZT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MultiplyZT\\");          
     */
     
     /*    
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMultiplyXY addobj = new LocalRollUpMultiplyXY();    
     MMATimeSeries resultobj = addobj.execute(tc);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\MultiplyXY\\");          
     */
     
     /*    
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMultiplyT addobj = new LocalRollUpMultiplyT();    
     MMASpaceCube resultobj = addobj.execute(hcobj);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\MultiplyT\\hypercube\\");          
     */
         
     /*
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMinimumZT addobj = new LocalRollUpMinimumZT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MinimumZT\\");          
     */
         
     /*    
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpMinimumZ addobj = new LocalRollUpMinimumZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MinimumZ\\");          
     */
     
     /*
     MMATimeCube hcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMinimumXY addobj = new LocalRollUpMinimumXY();    
     MMATimeSeries resultobj = addobj.execute(hcobj);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\MinimumXY\\");          
     */
         
     /*    
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMinimumT addobj = new LocalRollUpMinimumT();    
     MMASpaceCube resultobj = addobj.execute(hcobj);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\MinimumT\\");          
     */
         
     /*
     MMAHyperCube hcobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMedianZT addobj = new LocalRollUpMedianZT();    
     MMAGrid resultobj = addobj.execute(hcobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MedianZT\\");          
     */
         
     /*
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpMedianZ addobj = new LocalRollUpMedianZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MedianZ\\spacecube\\");          
     */     
     
     /*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMedianT addobj = new LocalRollUpMedianT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MedianT\\timecube\\");          
     */

     /*
     MMAHyperCube tc = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMedianT addobj = new LocalRollUpMedianT();    
     MMASpaceCube resultobj = addobj.execute(tc);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\MedianT\\hypercube\\");              
     */
         
     /*
     MMAHyperCube tc = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMeanZT addobj = new LocalRollUpMeanZT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MeanZT\\");              
     */
         
     /*    
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpMeanZ addobj = new LocalRollUpMeanZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MeanZ\\");              
     */
         
/*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMeanXY addobj = new LocalRollUpMeanXY();    
     MMATimeSeries resultobj = addobj.execute(tc);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\MeanXY\\");          
*/
         
     /*     
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMeanT addobj = new LocalRollUpMeanT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MeanT\\timecube\\");     
     */
      
     /*
     MMATimeSeries ts = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input1\\", "timeseries.hdr");
     LocalRollUpMeanT addobj = new LocalRollUpMeanT();    
     float f = addobj.execute(ts);
     System.out.println("Float result is ::" +  f);
     */    
         
     /*
     MMAHyperCube tc = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMaximumZT addobj = new LocalRollUpMaximumZT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MaxZT\\");                       
     */
     
     /*
     MMASpaceCube tc = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalRollUpMaximumZ addobj = new LocalRollUpMaximumZ();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MaxZ\\");              
     */
     
     /*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMaximumXY addobj = new LocalRollUpMaximumXY();    
     MMATimeSeries resultobj = addobj.execute(tc);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\MaxXY\\");     
     */    

     
/*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMaximumXY addobj = new LocalRollUpMaximumXY();    
     MMATimeSeries resultobj = addobj.execute(tc);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\MaxT\\timeseries\\");     
*/
     
/*
     MMAHyperCube tc = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpMaximumT addobj = new LocalRollUpMaximumT();    
     MMASpaceCube resultobj = addobj.execute(tc);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\MaxT\\hypercube\\");
*/
     
/*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpMaximumT addobj = new LocalRollUpMaximumT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\MaxT\\timecube\\");
*/     

     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpAddZT addobj = new LocalRollUpAddZT();    
     MMAGrid resultobj = addobj.execute(hyperobj);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\AddZT\\");
     */
         
     /*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpAddXY addobj = new LocalRollUpAddXY();    
     MMATimeSeries resultobj = addobj.execute(tc);
     BSQWriter.writeTimeSeries(resultobj, "V:\\testresult\\LocalRollup\\AddXY\\");             
     */    
     
     /*
     MMATimeSeries ts = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input1\\", "timeseries.hdr");
     LocalRollUpAddT addobj = new LocalRollUpAddT();    
     float f = addobj.execute(ts);
     System.out.println("Float result is ::" +  f);
     */

     /*
     MMATimeCube tc = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     LocalRollUpAddT addobj = new LocalRollUpAddT();    
     MMAGrid resultobj = addobj.execute(tc);
     BSQWriter.writeGrid(resultobj, "V:\\testresult\\LocalRollup\\AddT\\timecube\\");             
     */
     
     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     LocalRollUpAddT addobj = new LocalRollUpAddT();    
     MMASpaceCube resultobj = addobj.execute(hyperobj);
     BSQWriter.writeSpaceCube(resultobj, "V:\\testresult\\LocalRollup\\AddT\\hypercube\\");             
     */
     
/*
     MMAHyperCube hyperobj  = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMAHyperCube hyperobj1 = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMAHyperCubeList hcubelist = new MMAHyperCubeList();
     hcubelist.add(hyperobj);
     hcubelist.add(hyperobj1);     
     XYZTLag tlagobj = new XYZTLag(1,1,1,1);
     XYZTLag tlagobj1 = new XYZTLag(1,1,1,1);
     XYZTLagList tlaglist = new XYZTLagList();
     tlaglist.add(tlagobj);
     tlaglist.add(tlagobj1);
     LocalAdd addobj = new LocalAdd();
     MMAHyperCube resultobj = addobj.execute(hcubelist, tlagobj);
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\hypercubelist_xyztlaglist\\");               
 */     
     
 /*
 *   Exception thrown
     MMAHyperCube hyperobj  = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     System.out.println("1");
     MMAHyperCube hyperobj1 = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     System.out.println("2");
     XYZTLag tlagobj = new XYZTLag(1,1,1,1);
     System.out.println("3");
     LocalAdd addobj = new LocalAdd();
     System.out.println("4");
     MMAHyperCube resultobj = addobj.execute(hyperobj, hyperobj1, tlagobj);
     System.out.println("5");
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\hypercube_hypercube_xyztlag\\");               
*/     
     
     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMASpaceCube tcobj = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");               
     XYZLag tlagobj = new XYZLag(1,1,1);
     LocalAdd addobj = new LocalAdd();
     MMAHyperCube resultobj = addobj.execute(hyperobj, tcobj, tlagobj);
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\hypercube_spacecube_xyzlag\\");             
     */

     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMATimeCube tcobj = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");               
     XYTLag tlagobj = new XYTLag(1,1,1);
     LocalAdd addobj = new LocalAdd();
     MMAHyperCube resultobj = addobj.execute(hyperobj, tcobj, tlagobj);
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\hypercube_timecube_xytlag\\");         
     */    
         
     /*    
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMATimeSeries tsobj = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input\\", "timeseries.hdr");               
     TLag tlagobj = new TLag(1);
     LocalAdd addobj = new LocalAdd();
     MMAHyperCube resultobj = addobj.execute(hyperobj, tsobj, tlagobj);
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\hypercube_grid_xylag\\");         
     */     
         
     /*MMATimeCube timeobj  = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input\\", "timecube.hdr");
     MMATimeCube timeobj1 = BSQReader.readTimeCube("V:\\TestData\\MMA_input\\timecube_input1\\", "timecube.hdr");
     MMATimeCubeList timelist = new MMATimeCubeList();
     timelist.add(timeobj);
     timelist.add(timeobj1);
     XYTLag lag = new XYTLag(1,1,1);
     //MMASpaceCube spaceobj = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input1\\", "spacecube.hdr");
     LocalMedian la = new LocalMedian();     
     MMATimeCube resultobj = la.execute(timelist, lag);                       
     //MMAHyperCube resultobj = la.execute(hyperobj, hyperobj1);                       
     BSQWriter.writeTimeCube(resultobj, "V:\\testresult\\localMedian\\timecubelist_XYTlag\\");         
     */

     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMASpaceCube spaceobj = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input\\", "spacecube.hdr");
     LocalVariance la = new LocalVariance();     
     MMAHyperCube resultobj = la.execute(hyperobj, spaceobj);                       
     //MMAHyperCube resultobj = la.execute(hyperobj, hyperobj1);                       
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\localVariance\\hypercube_spacecube\\");     
     */
         
     
     
     
/*   MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMAHyperCube hyperobj1 = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");     
     MMAHyperCubeList hyperlist = new MMAHyperCubeList();
     hyperlist.add(hyperobj);
     hyperlist.add(hyperobj1);
     //MMASpaceCube spaceobj = BSQReader.readSpaceCube("V:\\TestData\\MMA_input\\spacecube_input1\\", "spacecube.hdr");
     LocalVariance la = new LocalVariance();     
     MMAHyperCube resultobj = la.execute(hyperlist);                       
     //MMAHyperCube resultobj = la.execute(hyperobj, hyperobj1);                       
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\localVariance\\hypercubelist\\");
 */
     
     
         
     /*
     MMAHyperCube hyperobj = BSQReader.readHyperCube("V:\\TestData\\MMA_input\\hypercube_input\\", "hypercube.hdr");
     MMATimeSeries tsobj = BSQReader.readTimeSeries("V:\\TestData\\MMA_input\\timeseries_input\\", "timeseries.hdr");               
     LocalSubtract la = new LocalSubtract();     
     MMAHyperCube resultobj = la.execute(hyperobj, tsobj);                       
     BSQWriter.writeHyperCube(resultobj, "V:\\testresult\\localSubtract\\hypercube_timeseries\\");
      */  
/*
     MMASpaceCube gridobj = ArchGridReader.readSpaceCube("V:\\ToyData\\ToySpaceCube\\", "spacecube.hdr");     
     MMASpaceCube gridobj1 = ArchGridReader.readSpaceCube("V:\\ToyData\\ToySpaceCube1\\", "spacecube.hdr");          
     MMASpaceCube oo = gridobj.localAdd(gridobj1);             
     ArchGridWriter.writeSpaceCube(oo,"V:\\temp\\");           
*/ 
     

/*         
     MMATimeCube gridobj = ArchGridReader.readTimeCube("V:\\ToyData\\ToyTimeCube\\", "timecube.hdr");     
     MMATimeCube gridobj1 = ArchGridReader.readTimeCube("V:\\ToyData\\ToyTimeCube1\\", "timecube.hdr");          
     MMATimeCube oo = gridobj.localAdd(gridobj1);             
     ArchGridWriter.writeTimeCube(oo,"V:\\temp\\");           
*/
     

/*
     MMAHyperCube gridobj = ArchGridReader.readHyperCube("V:\\ToyData\\ToyHypercube\\", "hypercube.hdr");     
     MMAHyperCube gridobj1 = ArchGridReader.readHyperCube("V:\\ToyData\\ToyHypercube1\\", "hypercube.hdr");          
     MMAHyperCube oo = gridobj.localAdd(gridobj1);             
     ArchGridWriter.writeHyperCube(oo,"V:\\Temp\\");           
*/

      //float arr[][]=gridobj.getData();
     //System.out.println("GETX :"+gridobj.getX());     
     //System.out.println("GETY :"+gridobj.getY());          
     //System.out.println("GETY :"+gridobj.getZ());          
     //System.out.println("GETT :"+gridobj.getT()); 
     //System.out.println("GETXRESOLUTION  :" + gridobj.getXResolution());     
     //System.out.println("GETYRESOLUTION  :" + gridobj.getYResolution());     
     //System.out.println("GETYRESOLUTION  :" + gridobj.getZResolution());          
     }catch(Exception e) {System.out.println("Exception called from main method"+ e);}   
    }
}
